package com.schoolcloud.social.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.schoolcloud.social.entity.SocPostRepliesFile;
import com.schoolcloud.social.service.SocPostRepliesFileService;
import com.schoolcloud.social.mapper.SocPostRepliesFileMapper;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author hongmizfb
 * @description 针对表【soc_post_replies_file(回复表文件id)】的数据库操作Service实现
 * @createDate 2025-02-20 09:22:12
 */
@Service
@RequiredArgsConstructor
public class SocPostRepliesFileServiceImpl extends ServiceImpl<SocPostRepliesFileMapper, SocPostRepliesFile>
        implements SocPostRepliesFileService {
    @Override
    public List<SocPostRepliesFile> listByReplyId(Integer replyId) {
        return lambdaQuery().eq(SocPostRepliesFile::getPostReplyId, replyId).list();
    }
}




